<?php
/*
 * @Description:
 * @Autor: wangjt
 * @Date: 2020-04-03 17:13:42
 * @LastEditors: wangjt
 * @LastEditTime: 2020-04-11 13:52:56
 */

Route::get('/', 'StaticPagesController@home')->name('home');
Route::get('/help', 'StaticPagesController@help')->name('help');
Route::get('/about', 'StaticPagesController@about')->name('about');

// reg
Route::get('/signup', 'UsersController@create')->name('signup');
Route::resource('users', 'UsersController');

// session
Route::get('login', 'SessionController@create')->name('login');
Route::post('login', 'SessionController@store')->name('login');
Route::delete('login', 'SessionController@destroy')->name('logout');
